<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/header.jsp" %>
<div class="row">
	<div class="col-xs-12">	
		<div class="widget-box widget-color-blue2">			
			<div class="widget-header">
				<h5 class="widget-title">用户查询</h5>
				<!-- #section:custom/widget-box.toolbar -->
				<div class="widget-toolbar">
					<a href="#" data-action="fullscreen" class="orange2"><i class="ace-icon fa fa-expand"></i></a>
					<a href="#" data-action="collapse"><i class="ace-icon fa fa-chevron-up"></i></a>
					<a href="#" data-action="close"><i class="ace-icon fa fa-times"></i></a>
				</div>
				<!-- /section:custom/widget-box.toolbar -->
			</div>
			<div class="widget-body">
				<div class="widget-main no-padding">				
					<form class="form-horizontal" id="queryUserForm">
						<input type="hidden" id="selectOrgOrDeptFlag" value="">
						<input type="hidden" id="selectOrgId" name="orgId" value="">
						<fieldset>
						    <div class="row">
						    	<div class="form-group col-xs-6">
									<label class="col-sm-4 control-label no-padding-left" for="userId">用户ID</label>
									<div class="col-sm-8">
										<input type="text" id="userIdQuery" name="userId" class="col-xs-10"  />
									</div>
								</div>
								<div class="form-group col-xs-6">
									<label class="col-sm-4 control-label no-padding-left" for="userName">用户名</label>
									<div class="col-sm-8">
										<input type="text" id="userNameQuery" name="userName" class="col-xs-10"/>
									</div>
								</div>							
						    	<div class="form-group col-xs-6">
									<label class="col-sm-4 control-label no-padding-left" for="certNO">证件号码</label>
									<div class="col-sm-8">
										<input type="text" id="cardNoQuery" name="cardNo" class="col-xs-10"  />
									</div>
								</div>
								<div class="form-group col-xs-6">
									<label class="col-sm-4 control-label no-padding-left" for="userRole">角色</label>
									<div class="col-sm-8">
										<select class="col-xs-10" id="form-field-select-3" data-placeholder="请选择角色" name="queryRole">
											 <hw:dictOption dictType="D00006"  value=""  />
                                            	</select>
									</div>
								</div>							
						    	<!-- <div class="form-group col-xs-6">
									<label class="col-sm-4 control-label no-padding-left" for="orgId">所属机构</label>
									<div class="col-sm-8">
										<input type="text" id="orgIdQuery" name="orgId" class="col-xs-10" />
									</div>
								</div> -->
								<div class="form-group col-xs-6">
									<label class="col-sm-4 control-label no-padding-left" for="userName">用户状态</label>
									<div class="col-sm-8">
										<select class="col-xs-10" id="form-field-select-3" data-placeholder="请选择角色" name="status">
										 <hw:dictOption dictType="D00026" value=""/>
										</select>
									</div>
								</div>					
							</div>
						</fieldset>
						<div class="form-actions center">
							<button class="btn btn-sm btn-info" type="button" id="searchUser">
								<i class="icon-on-right ace-icon fa fa-search bigger-110"></i>
								查询
							</button>
							&nbsp; &nbsp; &nbsp;
							<button class="btn btn-sm btn-warning" type="reset">
								<i class="ace-icon fa fa-refresh bigger-110"></i>
								重置
							</button>
						</div>		
					</form>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
var scripts = [null, null];
$('.page-content-area').ace_ajax('loadScripts', scripts, function() {
	//alert("${sessionOrg}");
	//机构/部门选择插件
	/* $("#orgIdQuery").orgTreeSelect({
			checkType:"org", 
			clickType:"org",
			defaultOrgId:"${fns:getOrgId()}",
			defaultOrgName:'<hw:orgName orgId="${fns:getOrgId()}" />',
			queryRootOrgId:"${fns:getOrgId()}"
		}
	); */
	
	$("#searchUser").click(function(){
		 oCache.iCacheLower = -1;
		//$('#userListTable').DataTable().ajax.reload();
		var params = $("#queryUserForm").serialize();
    	$("#userListDiv").off().load("${ctx}/user/list",params);
	});
	
	 /**人员选择插件
	 $("#userNameQuery").userinput({
	 	belongAreaId:'',
	 	belongDeptId: 'applyDept'/* ,
	 	defaultUserName:"${fns:getUser().userId}",
	    defaultUserCode:"${fns:getUser().userName}" 
	 });
	*/
	
	 
});

</script>
